//14.8 - Drawing.h - Mark Lee - Prima Publishing #ifndef DRAWING_H #define DRAWING_H //#include "ddraw.h" #include "globals.h" LPDIRECTDRAW7 g_pdd; //the DirectDraw object LPDIRECTDRAWSURFACE7 g_pddsprimary; //the primary surface LPDIRECTDRAWSURFACE7 g_pddsback; //the back buffer LPDIRECTDRAWSURFACE7 g_pddsone; //a temporary surface DDSURFACEDESC2 ddsd; //used to store surface descriptions DDSCAPS2 ddsc; //stores the capabilities of a surface //used to temporarily store the result of a function HRESULT hRet; //initializes all of the directX surfaces void InitializeDirectX(HWND hWnd); //do initial drawing of game screen void Draw(); //load all of the maps into HBITMAPs void LoadMaps(); //draws the game screen after the first time void Redraw(); //displays the bitmap specified by bmp void DisplayScreen(char* bmp); #endif